﻿using System;
using Agr.CQRS.Domain;
namespace Agr.CQRS.Domain.Repository
{
    public interface IDomainRepository
    {
        AggregateRoot GetById(Guid id, int version, Type aggregateRootType);
        T GetById<T>(Guid id, int version) where T : AggregateRoot;
        void SaveChanges(AggregateRoot ar);
    }
}
